import request from '@/config/axios'

export interface DeviceCheckTaskVO {
  produceDeviceMaintenanceTaskId: number
  spotCheckProjectNumber: string
  spotCheckProjectName: string
  criterion: string
  spotCheckMethod: string
  dictImplementationCycle: boolean
  dictFillingType: boolean
  enumeratedValues: string
  checkResult: string
  part: string
  problemDescription: string
  causeAnalysis: string
  processingResults: string
  dictTaskStatus: boolean
  creatorName: string
}

// 查询生产管理-设备管理-设备点检保养报表关系列表
export const getDeviceCheckReportPage = async (params) => {
  return await request.get({ url: `/produce/device-check-task/report/page`, params })
}

// 导出生产管理-设备管理-设备点检保养报表关系 Excel
export const exportDeviceCheckReport = async (data) => {
  return await request.download({ url: `/produce/device-check-task/report/export-excel`, data })
}
